﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Sheep_Breeding.Domain.production_a
{
    /// <summary>
    /// 母羊配种事件明细表
    /// </summary>
    public class Ewe_mating_details
    {
        /// <summary>
        /// 明细ID（主键，自增）
        /// </summary>
        [Key]
        public int DetailId { get; set; }

        /// <summary>
        /// 配种编号
        /// </summary>
        public string BreedingId { get; set; }

        /// <summary>
        /// 事件编号
        /// </summary>
        public string EventId { get; set; }

        /// <summary>
        /// 事件类型
        /// </summary>
        public string EventType { get; set; }

        /// <summary>
        /// 事件栏位
        /// </summary>
        public string EventPen { get; set; }

        /// <summary>
        /// 事件栋舍
        /// </summary>
        public string EventHouse { get; set; }

        /// <summary>
        /// 转入栏位
        /// </summary>
        public string TransferInPen { get; set; }

        /// <summary>
        /// 转入栋舍
        /// </summary>
        public string TransferInHouse { get; set; }

        /// <summary>
        /// 预测状态
        /// </summary>
        public string PredictionStatus { get; set; }

        /// <summary>
        /// 事件日期
        /// </summary>
        public DateTime? EventDate { get; set; }

        /// <summary>
        /// 事件体重（可选，事件发生时体重）
        /// </summary>
        public decimal? EventWeight { get; set; }

        /// <summary>
        /// 负责人
        /// </summary>
        public string Principal { get; set; }

        /// <summary>
        /// 创建人
        /// </summary>
        public string Creator { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreateTime { get; set; }

        /// <summary>
        /// 修改人
        /// </summary>
        public string Modifier { get; set; }

        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime? ModifyTime { get; set; }

        /// <summary>
        /// 审核人
        /// </summary>
        public string Auditor { get; set; }

        /// <summary>
        /// 审核时间
        /// </summary>
        public DateTime? AuditTime { get; set; }

        /// <summary>
        /// 单据号
        /// </summary>
        public string DocumentNo { get; set; }

        /// <summary>
        /// 是否已删除（逻辑删除标志）
        /// </summary>
        public bool IsDeleted { get; set; } = false;
    }
}
